<template>

  <section class="confirm-order">
    <AddressHeader :title="title"></AddressHeader>
    <div class="Receiving">
    	<router-link to="/ReceiptAddress">
    		<p>您的收货地址为空,点击添加收货地址</p>
    		<img src="../assets/main_img/right.png"/>
    	</router-link>
    </div>
    <div class="Place_main">
      <div class="Place_top">
        <img src="../assets/main_img/Xie_img.jpg"/>
        <p>高跟鞋女2018新款春季单鞋仙女甜美</p>
        <div class="x">x 1</div>
        <div class="num">￥128</div>
      </div>
      <div class="Place_bottom">
        <ul>
          <li>商品总额</li>
          <li>运费</li>
          <span>￥128.00</span>
          <span>+ ￥20.00</span>
        </ul>
      </div>
      <div class="Place_footer">
        <span>实付金额:<span>￥148.00</span></span>
        <router-link to="/Accounts">
        	<button>提交订单</button>
        </router-link>
      </div>
    </div>
  </section>

</template>

<script>
import axios from 'axios'
import AddressHeader from './Address_header.vue'
  export default  {
    name: 'confirm-order',
    props: [],
    mounted() {

    },
    data() {
      return {
        title:'确认订单'
      }
    },
    // created(){
    //   var url = "http://vueshop.glbuys.com/api/user/address/mod?token=1ec949a15fb709370f"
    //   axios.get(url).then((res) => {
    //     // console.log(res.data)
    //   })
    // },
    components:{
      AddressHeader:AddressHeader
    },
    methods: {
      back(){
        this.$router.back(-1);
      }
    },
    computed: {

    }
}
</script>

<style scoped>
  .confirm-order {
    width: 100%;
  margin: 0 auto;
  overflow: hidden;
  }
  
.Receiving{
  width: 100%;
  height: 2rem;
  background: url(../assets/main_img/1_15.png) no-repeat bottom;
  background-size:100%;
  text-align: center;
  overflow: hidden;
}
.Receiving p{
  float: left;
  font-size: 0.28rem;
  line-height: 2rem;
  margin-left: 1.36rem;
  color: #545152;
}
.Receiving img{
  width: 0.3rem;
  height: 0.37rem;
  margin-top: 0.8rem;
  margin-left: 1rem;
}
.Place_main{
  width: 100%;
  height: 5.43rem;
  background: #efefef;
  overflow: hidden;
}
.Place_top{
  width: 100%;
  height: 2rem;
  background: white;
  margin-top: 0.30rem;
  overflow: hidden;
}
.Place_top img{
  width: 1.2rem;
  float: left;
  margin: 0.3rem 0.52rem 0 0.3rem;
}
.Place_top p:nth-last-child(3){
  color: #29223e;
  font-size: 0.27rem;
  margin-left: 0.85rem;
  margin-top: 0.15rem;
}
.x{
  color: #858585;
  margin-top: 0.35rem;
  font-size: 0.25rem;
  overflow: hidden;
}
.num{
  color: #ff153b;
  font-size: 0.30rem;
	overflow: hidden;
	width: 74%;
	float: right;
	margin-top: -0.3rem;
}

.Place_bottom{
  width: 100%;
  height: 1.87rem;
  background: white;
  overflow: hidden;
  margin-top: 0.30rem;
}
.Place_bottom li:nth-last-child(4){
  color: #848777;
  font-size: 0.30rem;
  margin: 0.15rem 0 0.18rem 0.1rem;
}
.Place_bottom li:nth-last-child(3){
  font-size: 0.30rem;
  color: #848777;
  overflow: hidden;
  margin: 0.15rem 0 0.18rem 0.1rem;
}
.Place_bottom span:nth-last-child(2){
  float: right;
  color: #ff153b;
  margin-top: -1.2rem;
  font-size: 0.29rem;
  margin-right: 0.1rem;
}
.Place_bottom span:nth-last-child(1){
  float: right;
  margin-top: -0.5rem;
  color: #ff153b;
  font-size: 0.29rem;
  margin-right: 0.1rem;
}
.Place_footer{
  width: 100%;
  height: 1.03rem;
  border-top: 0.01rem solid #dedee0;
  position: fixed;
  bottom: 0;
  text-align: right;
  background: white;
}
.Place_footer span:nth-last-child(2){
  font-size: 0.32rem;
  line-height: 0.4rem;
  margin-left: 0.92rem;
  color: #353256;
}
.Place_footer span:nth-last-child(1){
  color: #ff153b;
}
.Place_footer button{
  width: 2.4rem;
  height: 1rem;
  margin-top: 0.01rem;
  font-size: 0.32rem;
  color: white;
  background: #cc0006;
  border: none;
 
}
</style>
